package com.wangyk.thymeleafproject;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

//使用Feign组件进行服务的调用
@EnableFeignClients
//@SpringBootApplication
//注册Eureka的client端
//@EnableDiscoveryClient
//Hystrix熔断器注解
//@EnableCircuitBreaker
//此注解可以替代省略的三个注解
@SpringCloudApplication
//HystrixDashboard可视化，开启Dashboard
@EnableHystrixDashboard
public class ThymeleafProjectApplication {

	public static void main(String[] args) {
		SpringApplication.run(ThymeleafProjectApplication.class, args);
	}

}

